-- GENERATED SPELL FOR [Hetaera] --


function spell0_6140(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(7367,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6140', 30000, 1)
end

function spell1_6140(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_6140', 543, 1)
end

function Sorts_6140(pUnit, Event)
local choix_sorts_6140 = math.random(0, 1)
if choix_sorts_6140 == 0 then
pUnit:RegisterEvent('spell0_6140', 1, 1)
end
if choix_sorts_6140 == 1 then
pUnit:RegisterEvent('spell1_6140', 1, 1)
end
end

function mob6140_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6140', math.random(1500, 3000), 1)
end

function mob6140_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6140_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6140_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6140, 1, 'mob6140_Action')
RegisterUnitEvent(6140, 2, 'mob6140_Leave')
RegisterUnitEvent(6140, 3, 'mob6140_Kill')
RegisterUnitEvent(6140, 4, 'mob6140_Die')
